package com.wqi.chapter6;

public class Bettle extends Insect{
	int k  =prt("Beetle.k init");
	Bettle(){
		prt("k = "+k);
		prt("j = "+j);
	}
	static int x2=prt("static Bettle.x2 init");
	static int prt(String s){
		System.out.println(s);
		return 63;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		prt("Bettle Constructor");
		Bettle b = new Bettle();
	}

}

class Insect{
	int i =9;
	int j;
	Insect(){
		prt("i=" + i+" ,j="+j);
		j=39;
	}
	static int x1 = prt("static Insect x1 init");
	static int prt(String s){
		System.out.println(s);
		return 47;
	}
}
